package com.hong.demo.other.fsm.impl;

import com.hong.demo.other.fsm.inf.IFSMTransition;

public class ApplyForRefundTransition implements IFSMTransition<OrderFSMContext> {

    @Override
    public OrderState onTransition(OrderFSMContext orderFSMContext) {

        orderFSMContext.setTargetState(OrderState.Refund);
        return OrderState.Refund;
    }
}
